class Student:
    # 类变量
    classroom = '101'
    address = 'beijing'

    # 构造函数（实例变量）
    def __init__(self, name, age):
        self.name = name
        self.age = age

    # 实例方法
    def print_age(self):
        print('%s: %s' %(self.name, self.age))

    # 静态方法
    @staticmethod
    def static_method():
        pass

    # 类方法
    @classmethod
    def class_method(cls):
        print(cls.__name__)


li = Student("li si", 23)
zhang = Student("zhang san", 18)

print(Student.classroom)
print(li.address)
li.classroom = '102'
Student.classroom = '103'
print(Student.classroom)
print(zhang.classroom)
print(li.classroom)

Student.class_method()
